package org.scheduler4j.scheduler;

import java.util.Date;

/**
 * the base class for Indate, to define the indate of Schedulers.
 * 
 * @author Eric
 * 
 */
public abstract class Indate {
	/**
	 * the start date of this indate
	 */
	protected Date startDate;

	/**
	 * check if the given Date perched in this indate.
	 * 
	 * @param date
	 *            the date to check.
	 * @return true - in this indate, false - not in this indate
	 */
	public abstract boolean contains(Date date);

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

}
